gdkcursor-win32.c: Add cursor map for all-scroll
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 15 Mar 2021 09:04:21 +0000 (17:04 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 15 Mar 2021 09:16:33 +0000 (17:16 +0800)
This makes sure that we don't have cursors disappearing on Windows upon
scrolling because we can't find a cursor that exists on the system during
a scroll, and unlike GTK-3.x, we do not default to the arrow pointer on GTK4.

Just mimic what we have on X11 and Wayland: the trusty standard arrow pointer.

Fixes issue #3581.

gdk/win32/gdkcursor-win32.c

index 6b0723bd860246da611659fe2fca287d1192ce64..fe9f299c719b3eb93113eb2790e86266812b5540 100644 (file)
@@ -61,6 +61,7 @@ static DefaultCursor default_cursors[] = {
   { "text", IDC_IBEAM },
   { "move", IDC_SIZEALL },
   { "not-allowed", IDC_NO },
+  { "all-scroll", IDC_ARROW },
   { "ew-resize", IDC_SIZEWE },
   { "e-resize", IDC_SIZEWE },
   { "w-resize", IDC_SIZEWE },